package com.springinaction.springidol;

import java.util.Collection;

/**
 * 一人乐队的参赛者
 * @time 2014年11月25日15:11:04
 * @author xupeng
 *
 */
public class OneManBand implements Performer{
	
	public OneManBand() {}
	
	private Collection<Instrument> instruments;

	public void setInstruments(Collection<Instrument> instruments) {
		this.instruments = instruments;
	}

	@Override
	public void perform() throws PerformanceException {
		for (Instrument instrument : instruments) {
			instrument.play();
		}
	}

}
